package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.RecordOpenWindow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface RecordOpenWindowRepository extends JpaRepository<RecordOpenWindow, Long>, JpaSpecificationExecutor {
    @Query(value = "select * from record_open_window  where union_id =:unionId and create_time  =:createTime ",nativeQuery = true)
    RecordOpenWindow findByUnionIdAndCreateTime(@Param("unionId") String unionId, @Param("createTime")String createTime);
}
